package com.ruoyi.wss.dahua.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class ScanInOutCodeRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 云下级平台平台编码，由城市停车平台生成
     */
    @NotBlank(message = "platformId不能为空", groups = WxH5.class)
    private String platformId;

    /**
     * 二维码 Id
     */
    @NotBlank(message = "qrId不能为空", groups = WxH5.class)
    private String qrId;

    /**
     * 支付宝/微信 openId
     */
    @NotBlank(message = "用户身份信息不为空", groups = {WxH5.class, WxXcx.class})
    private String uniqueId;

    /**
     * 生成小程序时的参数
     */
    @NotBlank(message = "参数不能为空", groups = WxXcx.class)
    private String scene;

    /**
     * H5时效验
     */
    public interface WxH5 {
    }

    /**
     * 小程序时效验
     */
    public interface WxXcx {
    }

}
